package com.spring.example.service;

import com.spring.example.mapper.UserMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author zhouhengzhe
 * @description:
 * @date 2021/11/30 下午8:55
 * @since v1
 */
@Service
//@Slf4j(topic = "e")
public class UserService {

	@Autowired
	private UserMapper userMapper;

	public void queryAll(){
		List<Map<String, Object>> queryall = userMapper.queryall();
//		log.debug("result:{}",queryall);
		System.out.println(queryall);
	}

}
